<?php
  function profile_frm_validation($form, &$form_state) {
    chkbadchar($form['title']['#value'],$form['title']['#title'],'title');
    chkbadchar($form['field_profile_designation']['und'][0]['value']['#value'],$form['field_profile_designation']['und'][0]['value']['#title'],'field_profile_designation');
    chkbadchar($form['field_profile_birth']['und'][0]['value']['#value'],$form['field_profile_birth']['und'][0]['value']['#title'],'field_profile_birth');
    chkbadchar($form['field_profile_education']['und'][0]['value']['#value'],$form['field_profile_education']['und'][0]['value']['#title'],'field_profile_education');
    chkbadchar($form['field_profile_father']['und'][0]['value']['#value'],$form['field_profile_father']['und'][0]['value']['#title'],'field_profile_father');
    chkbadchar($form['field_profile_mother']['und'][0]['value']['#value'],$form['field_profile_mother']['und'][0]['value']['#title'],'field_profile_mother');
    chkbadchar($form['field_profile_child']['und'][0]['value']['#value'],$form['field_profile_child']['und'][0]['value']['#title'],'field_profile_child');
    chkbadchar($form['field_profile_contact']['und'][0]['value']['#value'],$form['field_profile_contact']['und'][0]['value']['#title'],'field_profile_contact');
    //chkbadchar($form['field_profile_email']['und'][0]['value']['#value'],$form['field_profile_email']['und'][0]['value']['#title'],'field_profile_email');
    chkbadchar($form['field_profile_url']['und'][0]['value']['#value'],$form['field_profile_url']['und'][0]['value']['#title'],'field_profile_url');

  }